package cadenas;

public class Ejercicio04_SeparaChar {
  
  static String nombre = "Antonio";
  

  public static void main(String[] args){
    
    for (int i = 0; i < nombre.length();i++){
      if(i%2==0){
        System.out.print(nombre.charAt(i));
      
      }else{
        System.out.print(nombre.charAt(i) + " ");}
      
    }
    System.out.println("");
  }
}